//
//  TMMessageCenterController.m
//  国学商家管理
//
//  Created by Tao Li on 2018/7/6.
//  Copyright © 2018年 mac. All rights reserved.
//

#import "TMMessageCenterController.h"
#import "TMSystemsMessController.h"
#import "TMMyComplaintController.h"
#import "TMCourseReserveController.h"
#import "TMCoursOrderController.h"
#import "TMPaySuccessController.h"
#import "TMComplaintTypeController.h"
@interface TMMessageCenterController ()

@end

@implementation TMMessageCenterController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"消息中心";
    self.tableView.tableFooterView = [UIView new];
}
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
    if (indexPath.row == 0) {
        TMSystemsMessController *vc = [[UIStoryboard storyboardWithName:@"Mine" bundle:nil] instantiateViewControllerWithIdentifier:@"TMSystemsMessController"];
        vc.isPush = NO;
        [self.navigationController pushViewController:vc animated:YES];
    }
//    if (indexPath.row == 1) {
//        TMSystemsMessController *vc = [[UIStoryboard storyboardWithName:@"Mine" bundle:nil] instantiateViewControllerWithIdentifier:@"TMSystemsMessController"];
//        vc.isPush = YES;
//        [self.navigationController pushViewController:vc animated:YES];
//    }
    if (indexPath.row == 1) {
        TMCoursOrderController *vc = [[UIStoryboard storyboardWithName:@"Mine" bundle:nil] instantiateViewControllerWithIdentifier:@"TMCoursOrderController"];
        [self.navigationController pushViewController:vc animated:YES];
    }
    if (indexPath.row == 2) {
        TMPaySuccessController *vc = [[UIStoryboard storyboardWithName:@"Mine" bundle:nil] instantiateViewControllerWithIdentifier:@"TMPaySuccessController"];
        [self.navigationController pushViewController:vc animated:YES];
    }
    if (indexPath.row == 3) {
        TMCourseReserveController *vc = [[UIStoryboard storyboardWithName:@"Mine" bundle:nil] instantiateViewControllerWithIdentifier:@"TMCourseReserveController"];
        [self.navigationController pushViewController:vc animated:YES];
    }
    if (indexPath.row == 4) {
        TMMyComplaintController *vc = [[UIStoryboard storyboardWithName:@"Mine" bundle:nil] instantiateViewControllerWithIdentifier:@"TMMyComplaintController"];
        [self.navigationController pushViewController:vc animated:YES];
    }
    if (indexPath.row == 5) {
        TMComplaintTypeController *vc = [[UIStoryboard storyboardWithName:@"Mine" bundle:nil] instantiateViewControllerWithIdentifier:@"TMComplaintTypeController"];
        [self.navigationController pushViewController:vc animated:YES];
        //商家投诉。标题 + 内容+ 时间 + 回复消息
    }
}

@end
